FROM openjdk:17-alpine
LABEL author=liruo

ENV WEB_PORT=8020 \
    PROFILES=default

ADD /target/service2-0.0.1.jar /service2.jar

ENTRYPOINT ["java","-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005","-jar","/service2.jar","--spring.profiles.active=$PROFILES"]

EXPOSE $WEB_PORT
EXPOSE 5005